package com.tuyue.police.util;

import static java.lang.System.out;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/3/20.
 * @Modified By:
 */
public class Alicloudapi {

    public static void main(String[] args) {

    }

    public static String Zineng(String msg){
//        String host = "http://jisuznwd.market.alicloudapi.com";
//        String path = "/iqa/query";
//        String method = "GET";
//        String appcode = "2e4319854cf94d9e8d96ce6b39149087";
//        Map<String, String> headers = new HashMap<String, String>();
//        //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
//        headers.put("Authorization", "APPCODE " + appcode);
//        Map<String, String> querys = new HashMap<String, String>();
//        querys.put("question", msg);
//        try {
//            HttpResponse response = HttpUtils.doGet(host, path, method, headers, querys);
//            System.out.println(response.toString());
//            //获取response的body
//            return EntityUtils.toString(response.getEntity());
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        222
        out.println(111);
        System.out.println(111);
        out.println(222);

        return "我不会了";
    }
}
